<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
        $sql="select ".$oto."_favorites.*,".$oto."_users.userName,".$oto."_users.userPhoto,".$oto."_users.grage from ".$oto."_favorites,".$oto."_users where ".$oto."_users.userId=".$oto."_favorites.targetId and ".$oto."_favorites.userId='$user_id' and `favoriteType`='2'";
    	$result=$db->query($sql);
    	while($row=$result->fetch_assoc()){
    		$guanzhu_list[]=$row;//将取得的所有数据赋值给person_info数组
    	}
	    echo json_encode($guanzhu_list);
?>